package com.zmn.oms.common.dio.attachment;

import com.zmn.oms.common.dio.OmsAppBaseDIO;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 类描述：修改或保存工单附件
 *
 * @author liuying
 * @date 2021/06/14 14:49
 */
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ModifyOrderWorkAttachmentDIO extends OmsAppBaseDIO {

    /**
     * 附件ID
     */
    @ApiModelProperty(value = "附件ID")
    private Long attachmentId;
    
    /**
     * 第几张图片
     */
    @NotNull
    @ApiModelProperty(value = "第几张图片")
    private Integer index;

    /**
     * 操作类型，1 更新，2，删除
     */
    @NotNull
    @ApiModelProperty(value = "操作类型，1 更新，2，删除")
    private Integer opType;

    /**
     * 附件类型
     */
    @NotNull
    @ApiModelProperty(value = "附件类型")
    private Integer type;

    /**
     * 照片路径
     */
    @NotNull
    @ApiModelProperty(value = "照片路径")
    private String src;
}
